//package com.lxj.passkeep.common.config;
//
//import com.alibaba.druid.pool.DruidDataSource;
//import jakarta.annotation.PostConstruct;
//import jakarta.annotation.Resource;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
//@Configuration
//public class DruidDataSourceConfig {
//
//    @Resource
//    private DruidDataSource druidDataSource;
//
//    @PostConstruct
//    public void init() {
//        try {
//            druidDataSource.init();
//        } catch (Exception e) {
//            throw new RuntimeException("Druid DataSource initialization failed", e);
//        }
//    }
//}
